//
//  PickNumP5ViewController.h
//  PlayBall
//
//  Created by Sun Fanglei on 13-5-15.
//
//

#import "JddBaseViewController.h"
#import "JddFc3dNumber.h"
#import "JddIndexListView.h"
#import "JddQueryDigitalLotteryIssueOperation.h"
#import <AVFoundation/AVFoundation.h>
#import "JddRandomSelectNumView.h"

@interface JddPickNumP5ViewController : JddBaseViewController<IndexListViewDelegate,UITabBarDelegate,UIAccelerometerDelegate,QueryDigitalLotteryIssueOperationDelegate,IndexListViewDelegate,UIAlertViewDelegate,RandomSelectNumViewDelegate>{
@private
    NSTimer *countDownTimer;
    NSDate  *endTime;
    NSDate  *currentTime;
    NSMutableArray  *lotteryNumArray;
    JddFc3dNumber  *lotteryNum;
    JddIndexListView *indexList;
    BOOL queryState;
    NSInteger shakeCount;
    
    BOOL    shaked;
    JddRandomSelectNumView *randomSelectNumberDialog;
}

SHARED_VIEW_CONTROLLER_DECLARE(JddPickNumP5ViewController);

@property (strong, nonatomic) IBOutlet UIScrollView *scrollview;
@property (strong, nonatomic) IBOutlet UILabel *currIssueLabel;
@property (strong, nonatomic) IBOutlet UILabel *endTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *countLabel;
@property (strong, nonatomic) IBOutlet UILabel *moneyLabel;
@property (strong, nonatomic) JddLotteryIssue *currentLotteryIssue;

- (IBAction)clearBtn:(id)sender;
- (IBAction)randomBtn:(id)sender;
- (IBAction)doneBtn:(id)sender;
- (IBAction)randomOne:(id)sender;

- (IBAction)numberBtn:(id)sender;

- (void)destoryView;

@end
